from rest_framework.pagination import PageNumberPagination, LimitOffsetPagination
from rest_framework.pagination import CursorPagination


class MyPageNumberPagination(PageNumberPagination):
    page_size = 3
    max_page_size = 5
    page_size_query_param = "page_size"
    page_query_param = 'page'


class MyLimitOffsetPagination(LimitOffsetPagination):
    default_limit = 3
    max_limit = 5
    limit_query_param = 'limit'
    offset_query_param = 'offset'


class MyCursorPagination(CursorPagination):
    page_size = 3
    max_page_size = 5
    cursor_query_param = 'course'
    page_size_query_param = "page_size"
    ordering = '-price'